package com.uniview.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.uniview.dao.ServiceOrdersMediaDao;
import com.uniview.entity.po.ServiceOrderMedia;
import com.uniview.service.ServiceOrdersMediaService;

@Service("orderMediaService")
public class ServiceOrdersMedaiServiceImpl implements ServiceOrdersMediaService {

	@Autowired
	private ServiceOrdersMediaDao orderMediaDao;

	@Override
	public List<ServiceOrderMedia> findMediasByOrderId(Integer orderId) throws Exception {
		return orderMediaDao.findMediasByOrderId(orderId);
	}

	@Override
	public Integer save(ServiceOrderMedia orderMedia) throws Exception {
		return (Integer)orderMediaDao.save(orderMedia);
	}

}
